<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>目标伪类选择器</title>
    <style>
        div .content{
            display: none;
        }

        div .content:target{
            display: block;
        }
    </style>
</head>
<body>
    <div>
        <a href="#aaa">aaa</a>
        <div id="aaa" class="content">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam pariatur, veniam facilis et accusantium porro at dolorem, repellendus amet ipsam expedita sequi cumque, aperiam rerum neque possimus laudantium atque. Qui.
        </div>    
    </div>
    <div>
        <a href="#bbb">bbb</a>
        <div id="bbb" class="content">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam pariatur, veniam facilis et accusantium porro at dolorem, repellendus amet ipsam expedita sequi cumque, aperiam rerum neque possimus laudantium atque. Qui.
        </div>
    </div>
    <div>
        <a href="#ccc">ccc</a>
        <div id="ccc" class="content">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam pariatur, veniam facilis et accusantium porro at dolorem, repellendus amet ipsam expedita sequi cumque, aperiam rerum neque possimus laudantium atque. Qui.
        </div>
    </div>
</body>
</html>